package com.lxh.mp.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * created by lanxinghua@2dfire.com on 2020/2/21
 * 公众号配置，支持多个公众号
 */
@Data
@ConfigurationProperties(prefix = "wx.mp")
public class WxMpProperties {
    private List<MpConfig> configs;

    @Setter
    @Getter
    public static class MpConfig {

        private String appId;

        private String secret;

        private String token;

        private String aesKey;
    }
}
